package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * IV_InInvoice实体类
 * 
 * @author 
 *
 */
public class IvIninvoice {
	/***/
	private Object ID; 
	/***/
	private Integer InvoiceType; 
	/***/
	private String StartNo; 
	/***/
	private String EndNo; 
	/***/
	private Integer Counts; 
	/***/
	private java.time.Instant InDate; 
	/***/
	private Integer InEmpID; 
	/**
	 * 实例化
	 */
	public IvIninvoice() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public IvIninvoice(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("InvoiceType") instanceof Number) {
			this.setInvoiceType(((Number) obj.get("InvoiceType")).intValue());
		}
		if (obj.get("StartNo") instanceof String) {
			this.setStartNo((String) obj.get("StartNo"));
		}
		if (obj.get("EndNo") instanceof String) {
			this.setEndNo((String) obj.get("EndNo"));
		}
		if (obj.get("Counts") instanceof Number) {
			this.setCounts(((Number) obj.get("Counts")).intValue());
		}
		if (obj.get("InDate") instanceof java.time.Instant) {
			this.setInDate((java.time.Instant) obj.get("InDate"));
		}
		if (obj.get("InEmpID") instanceof Number) {
			this.setInEmpID(((Number) obj.get("InEmpID")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getInvoiceType() != null) {
			result.put("InvoiceType",this.getInvoiceType());
		}
		if (this.getStartNo() != null) {
			result.put("StartNo",this.getStartNo());
		}
		if (this.getEndNo() != null) {
			result.put("EndNo",this.getEndNo());
		}
		if (this.getCounts() != null) {
			result.put("Counts",this.getCounts());
		}
		if (this.getInDate() != null) {
			result.put("InDate",this.getInDate());
		}
		if (this.getInEmpID() != null) {
			result.put("InEmpID",this.getInEmpID());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取InvoiceType
	 * 
	 * @return
	 */
	public Integer getInvoiceType() {
		return InvoiceType;
	}

	/**
	 * 设置InvoiceType
	 * 
	 * @param InvoiceType
	 */
	public void setInvoiceType(Integer InvoiceType) {
		this.InvoiceType = InvoiceType;
	}
	
	/**
	 * 获取StartNo
	 * 
	 * @return
	 */
	public String getStartNo() {
		return StartNo;
	}

	/**
	 * 设置StartNo
	 * 
	 * @param StartNo
	 */
	public void setStartNo(String StartNo) {
		this.StartNo = StartNo;
	}
	
	/**
	 * 获取EndNo
	 * 
	 * @return
	 */
	public String getEndNo() {
		return EndNo;
	}

	/**
	 * 设置EndNo
	 * 
	 * @param EndNo
	 */
	public void setEndNo(String EndNo) {
		this.EndNo = EndNo;
	}
	
	/**
	 * 获取Counts
	 * 
	 * @return
	 */
	public Integer getCounts() {
		return Counts;
	}

	/**
	 * 设置Counts
	 * 
	 * @param Counts
	 */
	public void setCounts(Integer Counts) {
		this.Counts = Counts;
	}
	
	/**
	 * 获取InDate
	 * 
	 * @return
	 */
	public java.time.Instant getInDate() {
		return InDate;
	}

	/**
	 * 设置InDate
	 * 
	 * @param InDate
	 */
	public void setInDate(java.time.Instant InDate) {
		this.InDate = InDate;
	}
	
	/**
	 * 获取InEmpID
	 * 
	 * @return
	 */
	public Integer getInEmpID() {
		return InEmpID;
	}

	/**
	 * 设置InEmpID
	 * 
	 * @param InEmpID
	 */
	public void setInEmpID(Integer InEmpID) {
		this.InEmpID = InEmpID;
	}

	@Override
	public String toString() {
		return "IvIninvoice [ID=" + ID + " , InvoiceType=" + InvoiceType + " , StartNo=" + StartNo + " , EndNo=" + EndNo + " , Counts=" + Counts + " , InDate=" + InDate + " , InEmpID=" + InEmpID + "  ]";
	
	}
	
	
}
